Fixing issue #2 - caching the dom elements and initial width.