added several js files
canvas is now generated in js