removed old JS code