Fixed bug introduced by pull request #21

My pull request to fix inArray for ie8 introduced a bug. This pull request is to fix it. Very sorry for the oversight.