terminal thing in js part