Removed redundant JS code