Jshint was just secretly mad at the absence of a trailing semicolon. Applied your recommended changes, and everything seems okay.