jQuery externs update

Update the externs and add a fix for the filter function.