delete useless js code