Fix indentation.
Reduce diff between the PHP+JS code.
Reduce diff further.