what happens if there is a JS error in the code? I mean, obviously it will never be a JS error in committed code, but it might while we're developing, and then the error is probably swallowed (although I don't know exactly what happens in the promise resolver function) and we spend 1 hour to find why the promise is not resolved ;).