added curl.js to local
bug fixs