Return the object from the `add_object` function

Index.html has also been updated to make use of this change with a comment in regards to the `scene.find_object('ball')` method.