Refactor js. Remove useless js file.