How To Create Add Function In Javascript With Parameters