Creating objects in Javascript
Modified some code