Converted to two ajax requests to build the project