almost finished object js