upd rating js