Revert "Update JavaScriptUtils"

This reverts commit 7a7df6637478607bef0277bf52a4e0a03e20a248.