Do not start any JavaScript in diffs/old revisions

Change-Id: I429f44af2db749263cd4cd26365ac39fddcb498d