remove useless js statement