I was googling and just bumped into your post. It's been 3 months since you posted it and still not a single answer.
I happen to be looking for the exact same thing.
But you have achieved something that I can't on my own. You are actually running the script on 5.5.
I don't know what to edit in order for the script to run on 5.5. I wonder why William Lam hasn't been maintaining g2.
I'm not talking about developing it further because he may not have time and he may have found that g2 is not the way to go but at least maintaining it because on main page it only mentions 3.5 and 4.x.
So, could you (or anybody else for that matter) please let me know how to get g2 working on 5.5?
Thanks in advance