Actually, there's a problem here.  First, if the jsPath has things like "." or ".." in it, my pathDepth is going to be wrong.  Second, if the output path is something like "../o", then I need to know the name of the cwd so I can generate a sourceRoot that looks something like "../src".

*sigh*  Back to the drawing board...