Refactoring the Document Ready Call