removed http.js dependency