working protype connection for single connection
prototype can send value back to server - but reg ex is not working to replace key value in file