makes psiturk.js aware of the current mode (and allows refreshing the browser at any point in debug mode).