Randomized div script and pagination