Added isNumber function to relationships.js, updated comments