Removed obsolete JS code