Update and clean .emacs and add support for javascript