Created attach.js