changing emscripten_interface to director to comply already implemented feature