resolved problem in js.