Chrome serial API updated, updated the functions