Update template.php

Removed javascript that was not used anymore.