update javascript call in example.html