added dependency to body rather than window.