Updated example JS