code reduction by passing document.body in IIFE