Just use "view source" from inside Motion Lab.
I deliberately kept it as plain JavaScript with no aggressive obfuscation.
There are even some comments! ;-)