fixing text conflicts
removing the extra title tag
returning the preventDefault
removing commented-out code
cleaning up the file