Tests: adapted stream_js.t to njs changes.
diff --git a/stream_js.t b/stream_js.t
index 5b71381..332babd 100644
--- a/stream_js.t
+++ b/stream_js.t
@@ -284,7 +284,7 @@
 
     function js_preread_req_line(s) {
         s.on('upload', function (data, flags) {
-            var n = data.indexOf('\n');
+            var n = data.indexOf('\\n');
             if (n != -1) {
                 line = data.substr(0, n);
                 s.done();
@@ -305,12 +305,12 @@
         s.on('upload', function(data, flags) {
             req += data;
 
-            var n = req.search('\n');
+            var n = req.search('\\n');
             if (n != -1) {
                 var rest = req.substr(n + 1);
                 req = req.substr(0, n + 1);
 
-                s.send(req + 'Foo: foo' + '\r\n' + rest, flags);
+                s.send(req + 'Foo: foo' + '\\r\\n' + rest, flags);
 
                 s.off('upload');
             }