Fixed the other hanging < problem in tabs.

I put the end statements in the proper place so the the script tags get
closed.