minor fixes with js