Add a .jshintrc for the JavaScript code.

This matches the rules used in Review Board to ensure we're catching the
things we want to catch.