A sample implementation of Promise/A+ specification