I personally prefer wrapping the function definitions within the object (e.g the dog notation), as it's more like a Java/PHP "class".
However using the dog notation is less memory efficient as the functions are copied each time a new instance is created (see this article)