MDL-21591 fixed regression in JS calls