Use js2-mode to edit javascript; fix pretty-function for JavaScript