Moi Custom UI Install

 From:  vespanut (RTELL)
8330.1 
I was trying to install the custom UI for these scripts based on this post:
http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=7245.69

The icon appear; however, I get the attached error message. I don't have a coding background so I'm not sure how to troubleshoot it. Any insights?

Attached is the error message, as well as the modified UI code.

I'm running El Capitan with Moi v3.1.