Think you have got your brackets in the wrong order. You want something more like:

    })();