Fixed errors in jshint

Fixed errors in jshint as seen in travis build