flattenRequireJs: Inject a require statement if the module pointed to by a data-main attribute doesn't contain one.

Fixes: #127