move methods to class constructor prototype
combine init and start to main.js