VCR for javascript