A Study on Solving Callbacks with JavaScript Generators