Python Create Function In Javascript With Parameters