simplify emscripten::val set and get
Switch from val::get to val[]