var ShortcutPlugin = {
    CreateShortcut: function(shortcut_text, successCallback, errorCallback) {
        cordova.exec(
            successCallback,
            errorCallback,
            'ShortcutPlugin',
            'addShortcut',
            [{ 
                "shortcuttext": shortcut_text
            }]
        );
    }
    DeleteShortcut: function(shortcut_text, successCallback, errorCallback) {
        cordova.exec(
            successCallback,
            errorCallback,
            'ShortcutPlugin',
            'delShortcut',
            [{ 
                "shortcuttext": shortcut_text
            }]
        );
    }


}

var Shortcut = function() {}; 

Shortcut.prototype.CreateShortcut: = function (shortcut_text, successCallback, errorCallback) {
        cordova.exec(
            successCallback,
            errorCallback,
            'ShortcutPlugin',
            'addShortcut',
            [{ 
                "shortcuttext": shortcut_text
            }]
        );
};
Shortcut.prototype.RemoveShortcut: function(shortcut_text, successCallback, errorCallback) {
        cordova.exec(
            successCallback,
            errorCallback,
            'ShortcutPlugin',
            'delShortcut',
            [{ 
                "shortcuttext": shortcut_text
            }]
        );
};

if(!window.plugins) {
    window.plugins = {};
}
if (!window.plugins.Shortcut) {
    window.plugins.Shortcut = new ShortcutPlugin();
}

Change to look more like a "plugin js"
Change to look more like a "plugin js"
