sample of enchant.js