Fix binary js injection

Added a static function isBinaryRequest() to test the Content-Transfer-Encoding header for the value 'binary' before injecting the JS snippet to prevent image PHP-generated images from getting corrupted.

Fixes #53