Fix for "undefined is not a function" problem

Which reminds me, any way to add jshint / jscs to your build chain?  It totally would have warned you about this missing variable...