javascript recursion visualization