Updated alert binding: using nodeType for newer browsers and numbers for ie8
Updated docs