- Extract videos, dialog and utils code out of application.js.erb
- Add createVideoWithFallback helper to videos.js.erb