JS promises test example, for learning purposes.