define plugin before domReady