Fix bug js
Fix bug in js