Removing unneeded javascript