Removes unnessecary javascripts