flush out JS example