Fixed a wrong link.
Delete a object "console" which unsupported by old IEs.
Rewrote to the recursive call from the loop.