changed JS collection instantiation to work with new JSONAPI