define(["require", "exports"], function(require, exports) {
    var FileService = (function () {
        function FileService(ajaxHost) {
            this.ajaxHost = ajaxHost;
        }
        FileService.prototype.readFile = function (path, cb) {
            this.ajaxHost.ajax({
                type: "GET",
                url: path,
                success: cb,
                dataType:"script",
                error: (function (jqXHR, textStatus) {
                    return console.log(textStatus);
                })
            });
        };
        return FileService;
    })();
    exports.FileService = FileService;    
})

define(["require", "exports"], function(require, exports) {
    var FileService = (function () {
        function FileService(ajaxHost) {
            this.ajaxHost = ajaxHost;
        }
        FileService.prototype.readFile = function (path, cb) {
            this.ajaxHost.ajax({
                type: "GET",
                url: path,
                success: cb,
                dataType: "text",
                error: (function (jqXHR, textStatus) {
                    return console.log(textStatus);
                })
            });
        };
        return FileService;
    })();
    exports.FileService = FileService;    
})

fix parse error