You can create UI5 global variables using javascript namespaces.
Name spaces starting with sap is exclusive to SAP UI5.
you can declare them using two helper functions
jQuery.sap.declare(sModuleName) //Case of object
sap.ui.namespace(sNamespace) //Case of variableExample:jQuery.sap.declare("sap.ui.sample.MyClass");sap.ui.sample.MyClass = { key1 : 'value1' }; sap.ui.namespace("sap.ui.sample.subspace");sap.ui.sample.subspace.member1 = 42;sap.ui.sample.subspace.member2 = 3.141;