Fix JS code sample