fix jshint errors

This commit was sponsored by pebble {code}
http://pebblecode.com
merge logger changes from dev branch

This commit was sponsored by pebble {code}
http://pebblecode.com