Update beagle-term/js/beagle.js
Update beagle-term/js/beagle.js

handle serial functions at background js
RandomlyKnighted/beagle-term,RandomlyKnighted/beagle-term,beagleterm/beagle-term,beagleterm/beagle-term