Fix IE arr indexOf and access to obj properties