var clickFunction = function (event) {
//do some stuff here
window.removeEventListener('click',clickFunction, false );
};
window.addEventListener("click", clickFunction, false);
This will let you fire the clickFunction once, as the magic of closure let the removeEventListener find the clickFunction.
No need to use a library just to get something simple done.