Fixes JS compat so the driver with work with PTP

@Frijol I had failing tests before and after these changes.

Specifically, the 800Hz data rate and setting scale range failed.

Can you check it out?