changing the java script