This script looks like it's duplicated from `app/assets/javascripts/preview.js`?