Added the backend to check a domain and the front end to ajax it all nicely.