Web application refactor

JSLint cleanup.