Changed document.ready into ready cased iife.