Providing host, port etc to initial <script> in load time. Fixed a test