new JS file
refactored js
Refactored js