Update utils.js

Save utils into props to let it accessible through the threads.