A quick demo of js promises