TUI-36: Add methods for getting and setting window actions.
Small refactoring to the Util.js file.