Add example to add elements with JavaScript