Use a binary-data on Javascript