makeJsProxy fix and external resource read fix