copys pywb code (Still doesnt appear correct)