Update docs.coffee

adjusted how the response is built