Use swift.js instead of mock.js