Improve code

Fix jshint warnings.