Refactored directory structure of JavaScript files