Update ResponseListener.php

Accept now text/javascript and trim format to not bug with space.
Merge pull request #3 from Woyd/patch-3

Adds text/javascript Accept header for serialization.