template: fix js scope bug in transloadit image.