Going to httprequest instead of jquery ajax call