(function(){ this.enterEntity = function(entityID) { var portalDestination = "/-2,-1, 30"; Window.location = portalDestination; }; });