refactor preview.js
make a distinction between load and get event
make context.js work on the board