function mediator(){ this.ememy = {}; this.players = {}; this.init = function(){ alert("LOL"); } } mediator.init()