Improved performance by using Underscore.JS' filter function

More at http://stackoverflow.com/a/16994280