organizationl changes.  start making js more oo