Added the page javascript
Moved components to JS folders