An experiment with Javascript and HTML5 canvas