moved the js for cleanup and added a document.ready just in case...