Update for window.resize events.

Changed resize events to use jQuery due to inconsistency with execution
during window resize and orientation change.