Code optimization and streamlining

Removing selector bloat, caching jQuery objects, etc.