Remove curly braces from js electric-layout-rules

fix #694