Calling Async Function In Javascript With Parameters