Complete relationships.js