Fixed the code to pass on jshint

Fixed the code to pass on jshint