fix
use in nodejs or browser