transfer code from polyrhythmV, add disableSelection, clean up html