javascript light-weight pseudo-promise library