* dont't refresh widget if this browser tab is not selected
* some comments
* clean up code
* setTimeout changed to setInterval