hacked a fix to maximize windows after tabs are created because term.js does a wierd
setTimeout(element.focus(), 100)