fix javascript
tidy