lint fix

Some lint fix, removed BOM in src/upgrade.js