Modified test.js using request package