jshint errors are fixed.