clean up some javascript
clean up javascript more