fixed issue where the server's ip address wasn't propagated properly to the javascipt