How to create a simple javascript integration with ST REST API?

Tring to build a simple HTML and Javascript web application which (among other things) show information from Smartthings Hub via the new cloud API.

Is there any simple javascript code example implementing getting status of a device or setting an attribute?

I saw very complete node.js integrations and smartapps which expose REST API (probably before the new API) but in my skills, without some mockup - i am as good as dead.

Thanks !

There are some examples in the SmartThings github repositories: