port of WCSLIB to javascript
creating tests from WCSLIB results
merge from emscripten branch