Web application refactor

JSLint cleanups.