[utils] Handle single-line comments in js_to_json