add modeling of window.onload invocation
make classes public.  Fixes #32