Fixed issue loading webapp more than once.
It was a combination of the manifest only caching some files and the javascript then not finding some external functions.
All the caching from the manifest has been commented out, as it caused old versions to be cached during development.