EDITABLE CODE:
LiveDemo:jQuery - Waiting for DOM to get Ready
Note:This method ensures that script will be executed correctly no matter where it is placed in the Document