Moving jquery scripts to their own files, modifying files to use those scripts and changing submits to be ajax requests.