fixed pagination, changed some active state style, added a local copy of jqery