Async/Sync JS example