Added full JS example to add comments