missing/misplaced brackets in ionic-rating.js

The included .js file has some errors because of missing/misplaced brackets, and won't work.
Fixed for those with no coffeescript compiler