Extract questionnaires to single js files