Update http.js

The previous way is not good for minimizing javascript.