Added Settings, made layout look nicer (including file browser), moved javascript code to index.js