Update jsonapi-v2.js
Update jsonapi-v2.js

Check for window while require some tools.
So we can use require in browser.
alecgorge/jsonapi,alecgorge/jsonapi,alecgorge/jsonapi,alecgorge/jsonapi,alecgorge/jsonapi,alecgorge/jsonapi,alecgorge/jsonapi