Run JS when DOM is ready using IIFE and jQuery