Initial port from my DLL-BEST, JavaScript library