Providing some basic OO in Javascript.