Update Javascript API