Added new class Global.js witch stores global methods and attributes.