Modified loading jQuery function to apply style to loaded data for routes