Fix for Nette 2.2, undefined rules[id].op

This fix prevents gist from throwing errors in Nette 2.2. It also keeps this JS compatible with older Nette version.