removing unneeded javascript