Added jsHint to enforce coding standards.

I would do this the same way, but likely keep the end paren on the 2nd line, not the 3rd. We do need to document it better though, regardless.