Creating A Javascript Functions With Parameters In Python