instant preview with Viewer.js