(function (env) {
    "use strict";

    var codes = {"canada":"ca", "china":"cn", "denmark":"dk", "france":"fr", "germany":"de", "italy":"it", "japan":"jp", "kazakhstan":"kz", "netherlands":"nl", "russia":"ru", "spain":"sp", "sweden":"se", "uk":"uk", "usa":"us"};

    function getObject(obj, number) {
        if (number > 0) {
            obj.data = obj.data.people;
            obj.normalize = function(item) {
                return {
                    daysElapsed: moment().diff(item.launchdate, 'days'),
                    launchdate: moment(item.launchdate).format("MMM DD, YYYY"),
                    icon: DDG.settings.region.getLargeIconURL(codes[item.country.toLowerCase()]),
                    twitter: item.twitter.replace(/https?:\/\/twitter.com\//,''),
                    url: item.biolink
                };
            };
            obj.templates.item = 'base_item';
            obj.meta.itemType = number === 1 ? "Person in Space" : "People in Space";
        } else {
            obj.normalize = function(item) {
                return {
                    title: "There are no people in space right now."
                };
            };
            obj.templates.group = 'text';
            obj.templates.options.content = null;
        }
        return obj;
    }

    env.ddg_spice_people_in_space = function(api_result) {

        if (!api_result || api_result.number === undefined) {
            return Spice.failed('people_in_space');
        }

        var object = {
            id: "people_in_space",
            signal: "high",
            data: api_result,
            meta: {
                sourceName: "People in Space",
                sourceUrl: "http://www.howmanypeopleareinspacerightnow.com/"
            },
            templates: {
                options: {
                    moreAt: true,
                    content: Spice.people_in_space.content
                }
            }
        };

        DDG.require("moment.js", function() {
            object = getObject(object, api_result.number);
            Spice.add(object);
        });

    };
}(this));

@@ -1606,24 +1606,137 @@
     meta: %7B%0A
+                primaryText: api_result.number + (api_result.number == 1 ? %22 Person%22 : %22 People%22) + ' in Space',%0A
             

fix people in space metabar text