ajax in copy.js to post image