Restrict response to html/js only in Relationships controller