remove useless js code