silly javascript that accepts errors.