Refactor js to work on a specific transcription, not a collection