fix js syntax example