From http://stackoverflow.com/questions/18999501/bootstrap-3-keep-selected-tab-on-page-refresh