Removed pointless code in canvasobject.js
Moved javascript source files to lib/src