[javascript] Converting byte array to string in javascript