State tracking, various utility functions, exposed info to JS. Add help system. Bunch of js plugins.