[Refactor] ext. serial comm: extended.js - save only actual command without "\n"