Fix jshint

please review
I know why jshint is making this suggestion (at least I believe I do: because of first pass JS function definition and different JS engines having slightly different opinionson the scope of those)... but I'm not a fan of this function style:

```
var foo = function () {...};
```

Can we config jshint to NOT do that?