update js
consistently use the new method for finding application windows