nxhtml was changing the javascript mode away from js2-mode, so added some code to change it back.