Move the section alignment code to a jquery plugin

...and to a different file.

Change-Id: Ia42da2dde3ff9006e86dcc14794facd51218caa2
Merge "Move the section alignment code to a jquery plugin"