emacs: refactor js recipe