removed syntax warnings from attachments.js
removed make_thumbnail method