compile and add http.js to module's main