trying to improve http vs wamp detection. reading port and server from server_conf.json now in js