Avoid `Uncaught ReferenceError: process is not defined`

Thank you for your suggestion @abacai