Updated pathways coffeescript to plain javascript
Restructured the javascript folder