Create jsFunctions