moving background.js to new serial api