[JS] problem z wywołaniem funkcji

ok, problem rozwiązany.