Getting Array Input From User In Javascript The Default Global Object