DM me and we can work on it offline. Did you fix the typo?
After a couple offline discussions and a couple modifications to the sample code he'd given, Sanford Whiteman helped me to get through a couple hoops, and this is resolved!
If anybody's curious, check out his .js solution.