Use javascript to identify server