removed unused JS code