fixed bug where $wnd.enquire was returning undefined