How did grunt/jshint not catch the use of an undeclared variable?  Also, I think the shows why doing odd caps on compound words is bad.  People think of metadata as a word, so metaData is going to cause issues imho.