Another fix to promises code (semicolons)