ripping javascript out of index.html