Scala doesn't have [] for array access instead it looks like a method call:
val id = result.employee(0).id
However that isn't going work with the js.dynamic type, since the ScalaJs plugin
will emit js code that calls employee as though it is a function.
For situations like there there is an annotation that can be added in the library code called
"@JSBracketAccess" this will instruct ScalaJs to emit calls using brackets.
You will need to cast your employee array to a JsArray to be able to use this feature:
val id = result.employee.asInstanceOf[js.Array[js.Dynamic]](0).id
fyi I didn't test this so I hope I wrote it up right.