Update yii.js

```map``` and ```indexOf``` on arrays were only added in IE9.
Changed to make use of jQuery's equivalents.