fix errors on new tab opening
Merge pull request #12 from srusskih/master

"TypeError" on new tab
Merge pull request #2 from netpro2k/master

Fix typerror on opening of new tab