JavaScript markdown translator