Separated canvas demo and xWords.js functions