Increased element caching

Some more element caching and jquery performance optimizations while
keeping it mini.