I think this might be a bit clearer like:
```
gon.all_votes = {
  your_posts:{
    total: @user.likes.where(likeable_type: Post).count,
    good: @user.likes.where(likeable_type: Post, good: true).count
    evil: @user.likes.where(likeable_type: Post, good: false).count
  },
  all_posts:{
    total: Like.where(likeable_type: Post).count,
    good: Like.where(likeable_type: Post, good: true).count,
    Like.where(likeable_type: Post, good: false).count
  }
}
```

Then you'd use it from the javascript with `gon.all_votes.your_posts.good` or whatever.