Added Javascript API docs