fix some bug and remove useless js files