modify script for use with chrome and dartium

@ussuri