Added jshintrc, added 'use strict', and fixed a bug.

* gen_visual_diff.js was using the wrong output filename.