Fixed logout warning < 0 issue
Resolved several jshint issues