add res to mock.js