converted readurl.js to funcjs arch