Cleaning up raty.js some more using suggestions from codeclimate