changes top.location.href to refresh page in webcam app