fix c&p error in js generation