completely revamp the terminal js