canvas is now created in javascript