This is a gemified version of Marc Harter's humane-js library.