fixing canvas id
linting code, fixing errors and bugs