Add editorconfig and gitignore.  Reformat JS file to match editorconfig style