Add JS demo: events & functions.