Javascript: restyle to Allman