plain javascript for member_rating.js