using domReady as a function instead of as a plugin.