diff --git a/lib/server/index.js b/lib/server/index.js
index <HASH>..<HASH> 100644
--- a/lib/server/index.js
+++ b/lib/server/index.js
@@ -47,11 +47,11 @@ module.exports = {
 					return callback(error);
 				}
 
-				var html = data.toString().replace('</head>',
-					'<script type="text/javascript" src="/socket.io/socket.io.js"></script>\n' +
-					'<script type="text/javascript" src="/'
+				var html = data.toString().replace('</body>',
+					'    <script type="text/javascript" src="/socket.io/socket.io.js"></script>\n' +
+					'        <script type="text/javascript" src="/'
 					+ config.adapterPath + '/' + config.adapters + '"></script>\n' +
-					'</head>\n');
+					'    </body>\n');
 				callback(null, html);
 			});
 		});
Issue #<I> Testee client script injection needs to move to the page body