attachment method(email.js) added.xhr.js reformatted.