correct placement for ajax request
Beginnings of the server, non-functional