Creating A Function In Javascript With Parameters