Disable versions app JS in public mode

Since the version JS code isn't used in public link mode, disable it to
prevent Chrome freezing bugs due to the t() call being synchronous.

Fixes #4545

Please review @karlitschek @schiesbn @DeepDiver1975