restored electric-pair-mode and js2-mode