[#82] Fixes bug whereby tab javascript was failing

This was introduced while fixing the w3c compliance issues.
Merge pull request #83 from IATI/82-bugfix-tabs

[#82] Fixes bug whereby tab javascript was failing