support .json extensions in browser environments