Recursion problem in Chrome