removed unnecessary require('http')