Beautifying and converting to a IIFE
Beutifying and converting to IIFE