Created embedded javascript to run on ajax completion
Added code for relationships controller to respond to ajax.