Fix JSHint errors, fix tests.
Build.