move document.ready into script.js
spacing and indentation
clean up indenting and formatting