grr, this whole file should be replaced with http://medialize.github.io/URI.js/  . It's a direct port of python's relpath functions (another dev's contributions). For us, it's a no-op since we always put content in the same directory (no `../../` nonsense needed). Will add comments.