Fix referer checker for chrome v 30