new js

also shows only attachments attached to current post