The Javascript API