This page now includes xapiwrapper.min.js as well as a bit of custom javascript to capture the data and build the statement.
In the script, we configure xAPI to work with our LRS and define a function, "submission," which dispatches a statement generated from xAPI Lab.
We call "submission" with the "onsubmit" attribute in the form tag.