Added respond_to :json
Fixed controller fo projects