var config = { baseUrl: '', url: function (path) { return this.baseUrl + path; } };