Move buttons to JavaScript for testing.