Moved init code to main.js, because code in script tags is thrown away during build. Fixed bootstrap icon path
Added ace mode and theme files to index.html, so that they get included during build