Loading page optimisation + $.each added to closurequery