javascrip of example on page