Clean up javascript
Fix travis tests