refine integration with tokenize.js