Updated JS helper.