jQuery ajax() call needs to specify 'accept', not 'accepts'.