js ui tab fixes

With some js help from @gfranko I think I have:
 * direct links to tabs (asset/:tag#hardware-details) working in the ui
 * The auto-refresh log button woring