javascript: add examples