JavaScript library that makes it easy to talk to XBMC via the JSON API.
Check out the project site for more details: http://denwilliams.github.io/XbmcControllerJs/
Utilises Web Sockets for 2-way communication where available, with a fallback to HTTP.