used meta programming to add a document ready wait before every method