Controlling JavaScript Array: Example of Using length to Set Length