remove useless javascript