A few JavaScript shims that were missing.