By separating the files required by the web UI it would be easier to implement fixes and improvements. Maybe the packaging of these files could happen in the build step instead of having strings of HTML in the C source?