refactor js file location to src