return thumb url and preview url when query the attachments.
try to seperate js
precomple assets.
precomple assets.