Be consistent on document ready jquery function usage

Change-Id: Iac5b74b8330615b43f3f558ce688031ff9eeacef
Merge "Be consistent on document ready jquery function usage"