Fixing JSON repsonse and jshint