There are other solutions:
http://brandon.pulpexplosion.com/index.php/2010/05/javascrip...
The linked article, however, makes no sense. The author does not seem to understand how JavaScript works. Arrays are not copied when passed to another function.