got reward button working with cocoon gem by adding require cocoon.js to assets