FieldLayout: Synchronise PHP with JS

Follow-up to 2498265b.

Cleaned up the JS code a bit too, we don't need to recreate the
contents of this.$body every time the alignment is set.

Change-Id: I2b47112bfc0321ae1459f5f782aa01bfe9ece898