A little refactor of with-event-loop to help with readability

I was reading the code and thought this may be a little easier to read (for me at least!) using loop