[#82] Fixes bug whereby tab javascript was failing

This was introduced while fixing the w3c compliance issues.