Removed useless js code