added rating js