[js/common] allows using Uint16Array as data for float16 tensor (#23827)
### Description
Resolve #23817
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->