update location to jquery