fix resource loading for html app with isolates