js correction