getting rid of some js console errors