Ian: add javascript creation sample