refactore jq-window, jq-common (almost done)