Fix: SyntaxError: Expected token ')'

    // Mac OS X app was activated.
    document.addEventListener('appActivated', function(e) {
        console.log(e.data);
        var appName = e.data.localizedName;
        var bundleURL = e.data.bundleURL;
    }, true);