Added a model layer to the javascript.
Now return user as a JSON file.