removing some unneeded JavaScript lines