added httprequest javascript