Lightweight tab system written in pure javascript