JavaScript function now reveals passages in HTML