Use a more readable variable in indexOf shim