oops: Ajax does not always define settings.type
oops: Fix a few HTML bugs