Fix spaces in main.js

Fix indent and remove unnecessary spaces in main.js.
Fix typo in .editorconfig

First line should be the URL of editorconfig official site for reference.
Compress avatar image to minifiy size

Use TinyPNG service to compress PNG image.
Update avatar image path in index.html to the new compressed one.