Fix #31 Uncaught RangeError: Maximum call stack size exceeded in some browsers