Split code and style out of index.html