Improved JSON/JavaScript mode.