initail commit - singleton and module pattern

demonstrates and explains some basic javascript fundamentals