card collection prepare logic to MainController
jshint errors fix
pre-commit hook run jshint