Bug 1061575 Fixes jshint error in tests/head.js

updates esnext to false. and es6 `moz` to `true`, JS1.7