Enable calling JS functions from C# after the Task has been completed