fixing up some js syntax and removing unused ids and classes