Update file-gallery-media.js

add `attach` button to attachment view.
replace attachment template with new version by removing the exiting one and renaming a previously inserted new version.
(see file-gallery.php)