implement pathAry to filter unneeded js per page