firefox throughs NS_ERROR_NOT_AVAILABLE errors on page load. fix, or rather workaround