add an editorconfig
update to match editorconfig & JSHint (mostly)