fa1084cf8f
Javascript and json have multiple syntax checkers that can be loaded. Previously the logic to determine which checker to load was basically copied and pasted in both. The `go` checker will soon have more than one option too so remove the duplication by sticking the common code in the core.