Forward visitors based on IP address or city, in JavaScript