Test flipping using button figured out

Take a look at test.php. I've updated the javascript to grab the parent
div and flip it using a button like you had suggested.