i know.
the request.send(); needs to be moved out one level of brackets..
you had it in the function which is only called when you get successful response but you wont get a response as you never send in the first place.
try moving it down a few lines