changes to java script