jQuery optimization in Dashboard