Fixed isWindow for older IE. Fixed issue with undefined function.