js to kudos.js