I just started using module pattern in JavaScript to declare functional objects, but found it annoying to repeat the Foo.prototype keyword in declaring all those public functions you might need. 

So I came up with using some shorthand variable for convenience as follows. 

```
(function(){    
   var Foo = function(){
      alert('created Foo');
   }

   // shorthand for further creation of public functions
   var pro = Foo.prototype;

   //public function with shorthand
   pro.bar = function(){
      //some cool stuff here
   }
   return window.Foo = Foo;
}());

```

Question is: is there some reason to prevent me from saving these few characters regarding functionality or some unexpected error or is this safe to do?
This seems to work just fine for the cases I used it in?