product rating js updated with new methods