Do not use indexOf because it is not available in IE<9

Use jQuery.inArray instead...
Update HISTORY.txt
Update HISTORY.txt
Merge pull request #21 from gbastien/master

Stay compatible with IE < 9