js code clean up
add editorconfig
update gitignore