Update jshint rules
Fix lowercase classname
Remove duplicate code
Thrown exception when unable to connect to Cube