Use setTimeout in test.html's callbacks to prevent Firefox from hanging. Enhanced the appearance of the html save button.