Added randomized div script and pagination at the bottom