Uses browser-serialport if running as a chrome application.
Refactored require for clarity
Merge remote-tracking branch 'origin/master' into pr/47
fix chrome check