small changes to js.;