Adding JS to implement Emacs key bindings