Fixed a caching issue and cleaned up javascript at same time
Fixed a test that was breaking, added in additional comments about the test_f class