Ditching the meta-http refresh since we have two js methods.
Cleaning up some things, hopefully to make better testing.