Change linting options to allow function hoisting

Change `latedef` to `false` so that jsHint doesn't complain about function hoisting.

At some point it would be nice to rewrite some of the library code to make use of function hoisting. Can't do that while jsHint is complaining about it.