Refactors request summary javascript to be half as long.