Add owncloud version to JS scope

Fix #5361

@karlitschek @DeepDiver1975 @PVince81 @schiesbn