Update index.html

Adding flushPendingMessages() for removing pending system messages