Fixed jshint errors.
Removed unnecessary checks in getRange function.