Here\'s a sample of a simple Javascript class with a public and private method (fiddle: http://jsfiddle.net/gY4mh/).
function Example() { function privateFun
If you're not using EcmaScript5, I'd recommend using Underscore's (or LoDash's) bind function.