Switched to pushState and broke app into separate files/folders.