tweaked the JS to use prepend() instead of append() for test log output