Split JS code from non JS code
Reformat again