fixed node export for when used in browser