Js problem solve