corrected js2-mode-hook bugs