comments and jshint

added comments and jshint validation to sidebarView