Instead of the custom `findInArray` function, we could use Array.filter (it's available on all supported browsers as we shim the method using es5-shim)