surround sequences with a panel, fix javascript to enable sequence buttons, remove unused js code