In tab selection from cookie, jquery check for existance is (obj.length > 0), not (obj).
Add simple password access control to the web interface.