Prettified JS before adding to DOM