Can JavaScript classes/objects have constructors? How are they created?
Example here: http://jsfiddle.net/FZ5nC/
Try this template:
You must adjust your namespace if you are defining a static class:
Example class:
Example instantiation:
Notice functions are defined as A.B = function A_B(). This is to make your script easier to debug. Open Chrome's Inspect Element panel, run this script, and expand the debug backtrace: