adapted emacs fro javascript work