Replace jQuery.grep with native JS Array.prototype.filter method. Change-Id: Idbf88a516061ff46211f72e8b93e11f5fa838e88