create java script