preparing animation export for phantom.js