remove unneeded javascript