Adding AJAX support to M-Pin server requests