how to use objects in JavaScript