Gregorian to Hijri date calculator javascript - suitable for browsers and Node.js