use js for rendering extended example