I\'m a bit confused, how can I create public and private members.
My code template so far is like:
(function()){ var _blah = 1; someFunction =
You don't. You can rely on convention, prepending _ to your private attributes, and then not touching them with code that shouldn't be using it.
_
Or you can use the function scope to create variables that can't be accessed from outside.