I have this by default in my auto-mode-alist:
("\\.js\\'" . javascript-mode)
(even with emacs -Q). I'd like to substitute js2-mode for javascript-mode. Of course, I could use assq-delete-all and then add-to-list again, but I'm wondering whether there isn't a better way.
Edit: I explicitly do not want to use Customize, I prefer crafting my init.el myself.