Various JSLint and documentation fixes

Fix some JSLint warnings & update documentation. cc @stelcheck as I mentioned in #32