Updated JS with settings values