Created js for tabs and opening tabs trough url