JavaScript action chaining lib