update `.gitignore` for WebStorm
add `.editorconfig`
Update code style
move scripts to end of body