I doubt that as later versions of the AJAX library use JSON (next to SOAP) and that is not in version 15.1. Why not upgrade the whole application to 18.0 using the Web Application Framework. Yes, it will be some work but you are lined up again and with attempting to use the AJAX library further you are investing in the wrong direction.