js ex04 solved via Object