Add an async function in app-main.js

A post was merged into an existing topic: Can not add a function in app-main.js