Maximum Javascript Call Depth Of 1000 Exceeded