A jQuery like client-side library with mpromises. Sample code