remove endian code in index.js nothing is using

As far as I can tell, nothing is using this. Brings index.js coverage to 100%.