jshint: set indent from 4 to 2
jshint: added StatusBar to globals
jshint: fixed warnings