Added CartesianError.js.
Added MIT licence.