adding implementation to replace the client uri in the java script part of the html file