actually fixes the document ready, and will only load jquery when needed