JS-ify reordering questions

Ref. #4.