a tutorial on using javascript in an object-oriented way using haverbeke's ecosystem simulation