removed some js code