cleaned up issue with spy not defined during jshint run.