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
Merge pull request #5405 from owncloud/sharing-chromehangswithversionenabled

Disable versions app JS in public mode