js: added minimizeWindow() function