ratings and comment using JS