Javascript Create Array With Length N