Changes app to use routes instead of plopping it all in the index.html