Update Javascript API
Merge pull request #40 from regan-sarwas/js3.11

Update Javascript API