Bug 1061575 Fixes jshint error in tests/head.js

updates esnext to false. and es6 `moz` to `true`, JS1.7
I believe that this option is mostly legacy and is outdated with the esnext option. We should not change this.