[javascript mode] Use electricInput rather than electricChars

To be more intelligent about what kind of lines to indent.