Magic mode for node scripts and use javascript-mode for json files.
Disable c-electric-state in c-modes.