not that complicated. Just open the PKG as well as the JS files and skim through the code for the pieces you need