Add editorconfig file
Fix JS coding style

 * use single quotes for strings
 * use 4 space for indenting