Updated to use jshint