Modularized using requirejs. Seems to work fine apart from restarting after question answered.