Fix all jshint warnings in core code