custom ultralightweight DOM Ready implementation