remove some useless javascript codes