updated example.js - working!

get current tenants
create application
extand