Promise-based IO for JavaScript.