Added code to support using the AJAX api from other domains

Hi,

  I have just tried using the AJAX version of the showterm code and of course found it won't work cross domain.  I have created a fix for using the AJAX mode from a different domain.

Daniel