Fix error prototype detection in older browsers (possibly)
Small changes