What I meant was this:
(function() {
    // data handler definition
})();