Pass server address to javascript.