Break the JS part of the app into manageable pieces