Complete eventingLibrary.js