Fix bad JQuery selectors, group functionality

Use cached JQuery selectors inside the octave shift method and keep the
relevant controls with it.