added second argument "element" to $.filter