function ddg_spice_octopart (api_result) {

    if(!api_result || !api_result.results || api_result.results.length === 0) {
        return;
    }

    var results = [],
        isRelevant,
        skip_words = [
            "datasheet",
            "specs",
            "octopart"
        ];

    for(var i = 0; i < api_result.results.length; i += 1) {
        var iter = api_result.results[i];

        // Checks both the MPN and the manufacturer if the query is somehow relevant.
        isRelevant = DDG.isRelevant(iter.item.mpn, skip_words, 4, true) || 
            DDG.isRelevant(iter.item.manufacturer.displayname, skip_words, 4, true);

        // Check if we have images.
        if(iter.item.images.length > 0 && isRelevant) {
            results.push(iter);
        // If an image doesn't exist, add a different image.
        } else if(isRelevant) {
            iter.item.images.push({
                url_90px: "http://n1.octostatic.com/o3web/detail/images/camera-icon.png"
            });
            results.push(iter);
        }
    }

    if(results.length === 0) {
        return;
    }

    Spice.render({
        source_name : 'Octopart',
        spice_name: "octopart",
        source_url : 'http://octopart.com/partsearch#search/requestData&q=' + api_result.request.q,
        header1 : api_result.request.q + " (Octopart)",
        template_frame: "carousel",
        template_options: {
            template_detail: "octopart_details",
            items: results
        },
        force_no_fold : 1
    });
};

Handlebars.registerHelper("toFixed", function(number) {
    return number.toFixed(2);
});

Handlebars.registerHelper("escapeURL", function(string) {
    return encodeURIComponent(string);
});

Handlebars.registerHelper("trim", function(string) {
    return string.replace(/[^:]+:\s/, "");
});

@@ -35,16 +35,34 @@
 esult) %7B
+%0A    %22use strict%22;
 %0A%0A    if
@@ -1598,24 +1598,43 @@
 n(number) %7B%0A
+    %22use strict%22;%0A%0A
     return n
@@ -1651,16 +1651,16 @@
 xed(2);%0A
-
 %7D);%0A%0AHan
@@ -1706,32 +1706,51 @@
 ction(string) %7B%0A
+    %22use strict%22;%0A%0A
     return encod
@@ -1769,32 +1769,32 @@
 t(string);%0A%7D);%0A%0A
-
 Handlebars.regis
@@ -1826,24 +1826,43 @@
 n(string) %7B%0A
+    %22use strict%22;%0A%0A
     return s

use strict for Octopart Spice.