fixed bug where parent picture was not displayed because it was not passed to javascript
canvas.js was not working because it was calling on id element not class element
Merge pull request #34 from jsum528/JS/refactor

Js/refactor