trying to adapt the new version of enchant.js