Shims for some JS built-ins that I use all the time