Adding indexOf method if the browser is not implement this IE7.