//Filter experiment or computation templates

Application.Filters.filter('byMediaType', function () {
    return function (items, values) {
        var matches = [];
        if (items) {
            items.forEach(function(item) {
                if ('mediatype' in item) {
                    values.forEach(function(val){
                        if (item.mediatype === val){
                            matches.push(item);
                        }
                    });
                }
            });
        }
        return matches;
    };
});

//Filter experiment or computation templates

Application.Filters.filter('byMediaType', function () {
    return function (items, values) {
        var matches = [];
        if (items) {
            items.forEach(function(item) {
                if ('mediatype' in item) {
                    values.forEach(function(val){
                        if (item['mediatype'] == val){
                            matches.push(item);
                        }
                    })
                }
            });
        }
        return matches;
    };
});

--- 
+++ 
@@ -7,10 +7,10 @@
             items.forEach(function(item) {
                 if ('mediatype' in item) {
                     values.forEach(function(val){
-                        if (item['mediatype'] == val){
+                        if (item.mediatype === val){
                             matches.push(item);
                         }
-                    })
+                    });
                 }
             });
         }
Add semi-colon and use dot notation.
