remove haxe.Json implementation in JS unless -D oldBrowser is specified (close #2227)