fixed tabz -> tab uncaughtref syntax error
fixed print() -> printt()
nothing is getting put in the queue because each tab by default has a previous tab..unless its a new window?
flaw in nesting algorithm..will not always have a tab with undefined parent... must fix algorithm then fix implementation .. explanation of soln is written in comments