Removed document.write from CurrentInstances.cshtml 

Replaced with jQuery as it was breaking v7 backoffice.
Replaced .Length > 0 with String.IsNullOrEmpty for Azure env vars which is a better check.