Wrap in immediately-invoked function expression