removed useless js code