Canvas

update canvas js to fully functional