Refactor file path for js.