Cleanup javascript
Add better category value output to kmldocument