add settings.js
fix onPortChange onBaudChange