Added CartesianError.js.
Added MIT licence.
Merge pull request #1 from kallaspriit/master

Add MIT licenses and missing file