Moved event listeners outside of the check for boxes.length so they are registered even if there are no current wow elements on the page.