Rails - JavaScript App: Calculate karma points for a specific item to donate