checkpoint on fixing various javascript issues