refactore services to use a factory as constants
improve jq-window to support directive (WIP)