Refactored to be a wrapper for js-data.