Add js2-mode and write hooks