Tracing to understand why require() is not defined
Convert InspectedPage.resources to a map from
URL to resource, encapsulate it;
Pass the InspectedPage to RemoteWebPageProject and use resource.getContent()
for sources;
Change eval() to global scope with eval.call(window, ...)