Added proper document ready anon function.