Initial controller class
Canvas.js update

To use controller.js
Index bugfix