Save the current position in the localStorage