Updating js to new changes