altered attachment-JS file, rel #360

Due to a different Mootools and outdated code in the attachment-file the
removal + adding of attachment did had problems