Fix a typo and make delay non-negative in serial comms throttling code.
Merge pull request #335 from frgtn/typo_in_hardware_js

Fix a typo and make delay non-negative in serial comms throttling code.