Restructured the javascript folder structure and app structure to give it some loose architecture