Update tokenFactory.js

Thanks @vernak2539