changes to the js