Removed superfluous js code