outputing the js in the demo pages