uncaught rangeerror: maximum call stack size exceeded jquery