Fixing tab js error

The onclick handler for the tab elements were throwing js errors as they
couldn't access superselector (now back on global namespace)