what is the correct way to write a javascript array?