Split up core and plugin, generate index.html