Yeah, this is a JSHint thing. You need to define function() before you use them within the file. Sorry for the extra diff.