Set js mode for json files