rewrite ajax get request with .done() and .fail()
add example ajax function to get MongoDB data using POST request