Simple exercise in hacking with Javascript and canvas