can you just do `var http = require('http');` here instead. don't mix styles!