updates to IP address capture JS