Move side menu into core/JS

Dependent on core PR

cc @sdougbrown