function ddg_spice_plos(api_result) {

    // Grab number of results.
    var numFound = api_result.response.numFound;

    // if no results, don't show spice.
    if (numFound < 1) return

    // Get query, exclude the trigger, and exclude preceding/trailing white space.
    var script = $('[src*="/js/spice/plos/"]')[0];
    var source = $(script).attr("src");
    var query = source.match(/plos\/([^\/]+)/)[1];

    Spice.render({
         data               : api_result.response.docs,
         force_big_header   : true,
         force_no_fold      : true,
         header1            : decodeURIComponent(query) + ' (PLOS)',
         source_name        : 'PLOS',
         source_url         : 'http://www.plosone.org/search/advanced?unformattedQuery=' + query,
         spice_name         : 'plos',
         template_frame     : 'list',
         template_options   : {
            items: api_result.response.docs,
            show: 5,
            max: 10,
            template_item: 'plos',
         },
    });
}

// Convert full publication date to year only.
Handlebars.registerHelper('year', function(pubdate) {
    var year = pubdate.substr(0, 4);
    return year;
});

@@ -30,16 +30,34 @@
 esult) %7B
+%0A    %22use strict%22;
 %0A%0A    //
@@ -193,22 +193,39 @@
 nd %3C 1) 
-return
+%7B%0A        return;%0A    %7D
 %0A%0A    //
@@ -1146,24 +1146,43 @@
 (pubdate) %7B%0A
+    %22use strict%22;%0A%0A
     var year

use strict for Plos Spice.