Remove jQuery dependency for simplicity
Tweak refresh criteria