reformated ouput for js compiler