adds Rating and partially fixes documents pagination view javascript