remove old JS and push update JS to footer