Editorial: factor out and clean up javascript: URL processing

Add a description of Editorial: factor out and clean up javascript: URL processing