Get Array Input From User In Javascript Object Methods And Properties