Normally html files can contain multiple script statements so you don't necessarily need includes, but in our case it's a problem. We can attach multiple scripts into JS context, but so far there's no way how to specify which ones should be attached. Looks like we'll have to add support for it by allowing some #include statements in the root script and then, before loading, parsing the script header and attach the referred scripts, removing the #include lines as we do it.
Maybe not #include but something else.