update single.js for singleRelationship Demo