fix up README javascript example generation