Lots of changes: modules added

Added modules, so things are loaded using require (you need to compile
down everything by doing "browserify textManager.js -o compiled.js"
before trying it out).
Localstorage finally works, no need to ever think about this again.