playing with tabs and organizing js