AUI-1549 Error in widget-modality.js