Convert char.coffee to char.js