Expose Replace to browser