refactored js [deploy: production]