It looks like you are trying to log out the return from GetDataFromServer() in a synchronous fashion - the console log should be inside a done() callback chained onto the end of GetDataFromServer() as $.ajax() is an asynchronous method by nature.
I do believe you can set $.ajax() to be synchronous but I would advise you stick to the conventions used throughout JMVC models which return a promise().
- GetDataFromServer().done(function(data) {
- console.log(data);
- });