Variables caching

Some basic variables and jQuery selectors caching.