web/javascript.js: fix all JSHint issues.
web/default.css: minor refactoring.