Removed useless javascript code