Updated to use UglyflyJS (uglyfly-js). Changed tests for async API.