make javascript example work.