When refreshing, widgets must check if they should be visible Implemented unit tests to the JavaScript functions.