Migrating cylon-i2c to pure JS.