Fixed warnings from jshint