context.js: make previews work everywhere
context.js: wrap up