javascript and tab render cleanup.