Updated questionView to commonJS syntax