JSLint, avoid callback for synchronous API and ensure we return immediately after async (to avoid additional notices), utilize proper api for async in demos