fix problem with binaryIndex as Array.prototype
replace alerts with infoWindows