Added isWindow and started working on isPlainObj, not working for IE yet.