regex loop working, need to eliminate javascript in page source