WIP Web application refactor

JSLint updates.