User browser-independent _indexOf fn + catch error when calling console on IE8