Update curl.js

try to get the module id when a load fails