Javascript snippet: Return the relative path from sourcefile to targetfile