Performance enhancements to octave shift

No longer removing classes that might not be there. Better jQuery
selectors throughout.