Update modem.js

Refixed throw