ruby and js upd