lib: jshint fixes