Selenium can't return complex Javascript objects, so when you try to execute short scripts that return objects (jQuery objects are an excellent example), the driver breaks with "too much recursion".