WIP
Fixes jshint warnings.