tamed the JS beast a bit.