Hello Scoretesting,
Its look like there is a bug in the current version of JavScript SDK, we are looking on to it & will provide a patch by the end of this week. We update this thread, once the patch will available for use.
Thanks for your patience.
Himanshu Sharma