concise js nav code using tabs