Javascript for a makeshift terminal which is added to specified div in an html file.