modified the jquery section so the document 'readied' itseld correctly