Cleaning up a little.

Got rid of the javascript replace stuff, and deleted some unneccessary imports
to speed up the load.