JavaScript demos changed to run in the browser