Clean up companies.tpl.html logic