rewrote question.js to match web.py