wcsjs
is a Javascript port of Mark Calabretta's WCSLIB using Emscripten. The library works in either NodeJS or in the browser.
var wcs = require('wcs');
var w = new wcs();
w.init(headerString);
var world = w.pix2sky(x, y);
var pixcrd = w.sky2pix(ra, dec);
<script src="wcs.js" type="text/javascript"></script>
<script type="text/javascript">
var w = new wcs();
w.init(headerString);
var world = w.pix2sky(x, y);
var pixcrd = w.sky2pix(ra, dec);
</script>