remove curly braces from js electric-layout-rules

fix #694
Merge pull request #698 from toctan/js-electric-layout-fix

Remove curly braces from js electric-layout-rules