unneeded javascript and html removed