modified to pass every jshint.