Once.js is a 0.1kb micro-library that enables you to enforce a function can only be executed once.