[fixed #10] using umd ensure document under node