with curl.js (instead of require.js)