add the `require` function and a new example/autocomplete