Maybe a Javascript API?