No exclamation necessary
Detect tern config file as JSON
Better JS support
Set XDG dirs if unset
Don't overwrite entire rtp if unnecessary
Fix formatting