Update Javascript API examples