test of a canvas game in JS with adhoc library