fix javascript
update regex