[UPDATE] refactor + path js file