getting read for generating the javascript canvas code