Added support for JavaScript-style output