Optimizations, use less jquery