Lib of general Javascript helpers and shims.