makes changes to javascript