Creating A Javascript Functions With Parameters Python