Adding utility method for dom ready