Dear @clineker
the code is based on Javascript and because LayTheme is a single Javascript Application Website – Javascript gets handled a bit different than usual:
http://laytheme.com/documentation.html#custom-javascript
I recommend to analyse the code in an editor and see how it works. Then you can maybe make a couple of changes to get it running in Laytheme.
All the best!
Marius