Display responseText as document on xhr's 500

Change im.js line endings from CRLF to LF.
Add IM service and make use of it
Replace ProfileController.php line endings CRLF->LF