Add web refresh in main loop (ie.refresh)

It seems that the Unity mstp page never refreshes while the
script is running.