changing options
adding factory for queries
switching to latest version of jquery