progress on jq-window (still need a lot of work!)