fixing agora creation and js view