starting to extract render code from tty.js
replacing term with hypernal module
using vm instead of contextify, but this is causing errors
refactored to synchronous execution for now as async caused problems