docs and jshint fixes