Simple tab effects implemented by js