onReady helper to fire functions after DOMContentLoaded